package com.general.seckill.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * @description: OrderServiceFeign
 * @author: general
 * @version: 1.0
 * @create: 2022-04-30 16:08
 **/
@FeignClient("order-service")
public interface OrderServiceFeign {

    @PostMapping("/order/create")
    Map<String, Object> createOrder();

    @GetMapping("/order/getList")
    List<Map<String, Object>> getOrderList();
}
